<template>
  <div class="container">
        <div class="my-tabs">
                <a-tabs default-active-key="1" :tab-position="tabPosition">
                <a-tab-pane key="1" tab="我的主页">
                    <div>
                        <header>
                            个人信息
                        </header>
                        <div class="myInformation">
                            <div class="informationList"> 昵称 
                                <a>修改</a> 
                                <br>
                                <span>{{ $store.state.userInfo.nickname }}</span>
                            </div>
                            <div class="informationList"> 手机号 
                                <a>修改</a> 
                                <br>
                                <span>{{ $store.state.userInfo.mobile }}</span>
                            </div>
                            <div class="informationList"> 密码 
                                <a>修改</a> 
                                <br>
                                <span>{{ $store.state.userInfo.password }}</span>
                            </div>
                            <div class="imgInfo">  
                                <span>
                                    <img :src="$store.state.userInfo.avatarUrl" alt="" style="width: 200px;height: 200px;">
                                </span>
                                <br>
                                <span role="button" tabindex="0" class="ant-upload">
                                    <input type="file" accept="" style="display: none;"><button data-v-407ac5f9="" type="button" class="ant-btn"><i data-v-407ac5f9="" aria-label="icon: upload" class="anticon anticon-upload"><svg viewBox="64 64 896 896" data-icon="upload" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"></path></svg></i><span>更改头像</span></button></span>
                            </div>
                            
                        </div>    
                    </div>
                </a-tab-pane>
                <a-tab-pane key="2" tab="我的课程">
                    Content of Tab 2
                </a-tab-pane>
                <a-tab-pane key="3" tab="我的订单">
                    Content of Tab 3
                </a-tab-pane>
                <a-tab-pane key="4" tab="我的会员">
                    Content of Tab 4
                </a-tab-pane>
                </a-tabs>
        </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      tabPosition: 'left',
    };
  },
  methods: {
    callback(val) {
      console.log(val);
    },
  },
};
</script>
<style lang="scss" scoped>
.container{
    background: #f4f4f4;
    padding:20px;
    overflow: hidden;
    margin: 0 auto;
    margin-bottom: -47px;
    
}
.my-tabs{
            margin-top: 15px;
            background: #fff;
            border-radius: 10px;
            margin-bottom: 15px;
            padding: 20px;
            width: 1160px;
            margin: 0 auto;
    }
    .ant-tabs-ink-bar {
    position: absolute;
    bottom: 1px;
    left: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 0;
    height: 2px;
    background-color: #18ff30;
    transform-origin: 0 0;
}
.ant-tabs-nav .ant-tabs-tab-active {
    color: #00cf8c;
    text-shadow: 0 0 0.25px #00cf8c;
}

header{
    font-size: 22px;
    color: #333;
    padding-bottom: 20px;
}
.myInformation{
    padding: 40px;
    font-size: 20px;
    color: #333;
    line-height: 40px;
    .informationList{
            padding-bottom: 20px;
            margin-bottom: 20px;
            border-bottom: 1px solid #ddd;
            a{
                font-size: 14px;
                color: #00cf8c;
            }
            
    }
}
</style>
